var app = angular.module('webapp');

app.controller('HomeController', ['$scope','HomeService',HomeController]);

function HomeController($scope , HomeService){

	HomeService.getImgByPlace({place:1}).then(function(data){
		$scope.sliderImgData = data;
	},function(err){

	});

	HomeService.getHomeMenu({place:0}).then(function(data){
		$scope.menuIconData = data;	
	},function(err){

	});


}

angular.element(window).bind('load', function() {  
    $('.carousel').carousel({
	  interval: 1000
	});
});